import java.util.*;

public class javazfx_6 {
    public static void main(String args[]) {
        Scanner reader = new Scanner(System.in);
        String fuck = reader.nextLine();
        String shit;
        int c;
        for (int i = fuck.length(); i >= 0; i--) {
            shit = fuck.substring(i-1, i);
            try{
                c = Integer.parseInt(shit);
            }catch(Exception e){
                System.out.print(shit);
            }
        }
        System.out.println();
    }
}
